execute as @a if data storage biome_advancements:settings have_settings unless score @s biome_advancements_have_settings matches 0..1 if score @s biome_advancements_word_check matches 1 run data modify storage biome_advancements:settings have_settings set value true
execute as @a if data storage biome_advancements:settings settings_version unless score @s biome_advancements_settings_version matches 1..6 if score @s biome_advancements_word_check matches 1 run data modify storage biome_advancements:settings biome_advancements_settings_version set value 7
execute as @a if data storage biome_advancements:settings advertisments_version unless score @s biome_advancements_advertisments_version matches 0..4 if score @s biome_advancements_word_check matches 1 run data modify storage biome_advancements:settings biome_advancements_advertisments_version set value 4
execute as @a unless score @s biome_advancements_advertisments_show matches 0..1 if score @s biome_advancements_word_check matches 1 run scoreboard players set @s biome_advancements_advertisments_version 1
execute as @a unless score @s biome_advancements_show_toast matches 0..1 if score @s biome_advancements_word_check matches 1 run scoreboard players set @s biome_advancements_show_toast 1
execute as @a if data storage biome_advancements:settings show_toast unless score @s biome_advancements_show_toast matches 0..1 if score @s biome_advancements_word_check matches 1 run data modify storage biome_advancements:settings show_toast set value true

execute as @a unless score @s biome_advancements_word_check matches 0..1 run data modify storage biome_advancements:settings word_check set value false
execute as @a if score @s biome_advancements_have_settings matches 0 run data modify storage biome_advancements:settings settings_version set value 7
execute as @a if score @s biome_advancements_have_settings matches 0 run data modify storage biome_advancements:settings advertisments_version set value 4
execute as @a if score @s biome_advancements_have_settings matches 0 run data modify storage biome_advancements:settings word_check set value true
execute as @a if score @s biome_advancements_have_settings matches 0 run playsound ui.button.click block @s
execute as @a if score @s biome_advancements_have_settings matches 0 run data modify storage biome_advancements:settings have_settings set value true